import { connect } from 'react-redux'
import CustomerService from '../../../views/My/MyOrder/CustomerService'

function mapStateToProps(state: any) {
    return {
        userInfo: state.user.userInfo,
        returnDetail: state.user.returnDetail
    }
}

function mapDispatchToProps(dispatch: (obj: any) => void) {
    return {
        // 'SET_RETURNPOLICY_DATA': (data: any, status: number) => {
        //     dispatch({ type: 'SET_RETURNPOLICY_DATA', data, status })
        // },
        // 'SET_USER_ORDER_INDEX': (data: number) => {
        //     dispatch({ type: 'SET_USER_ORDER_INDEX', data })
        // },
        'SET_USER_RETURN_DETAIL': (data: any) => {
            dispatch({ type: 'SET_USER_RETURN_DETAIL', data })
        }
    }
}

export default connect(mapStateToProps, mapDispatchToProps)(CustomerService)